
#include "../../matrix/matrix.h"

#include "immorph.h"

void imp_image_morph_open(ImpMatrix * Mat, ImpMatrix * SE, ImpMatrix ** Open) {
	
	ImpMatrix * TMP = NULL;
	
	imp_image_morph_erode(Mat, SE, &TMP);
	imp_image_morph_dilate(TMP, SE, Open);
	
	imp_object_delete(TMP);
	
}